package com.defangit.production.domain;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

public class TransferEntry {
    private int id;
    private Operator applicant;
    private Operator receiver;
    private List<ManufactureItem> manufactureItems = new ArrayList<>();
    private LocalDateTime createTime;
    private LocalDateTime endTime;
    private boolean accept;
    private AbstractStore originStore;
    private AbstractStore targetStore;

    public int getId() {
        return id;
    }

    public TransferEntry setId(int id) {
        this.id = id;
        return this;
    }

    public AbstractStore getOriginStore() {
        return originStore;
    }

    public TransferEntry setOriginStore(AbstractStore originStore) {
        this.originStore = originStore;
        return this;
    }

    public AbstractStore getTargetStore() {
        return targetStore;
    }

    public TransferEntry setTargetStore(AbstractStore targetStore) {
        this.targetStore = targetStore;
        return this;
    }

    public Operator getApplicant() {
        return applicant;
    }

    public TransferEntry setApplicant(Operator applicant) {
        this.applicant = applicant;
        return this;
    }

    public Operator getReceiver() {
        return receiver;
    }

    public TransferEntry setReceiver(Operator receiver) {
        this.receiver = receiver;
        return this;
    }

    public List<ManufactureItem> getManufactureItems() {
        return manufactureItems;
    }

    public TransferEntry setManufactureItems(List<ManufactureItem> manufactureItems) {
        this.manufactureItems = manufactureItems;
        return this;
    }


    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public TransferEntry setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
        return this;
    }

    public LocalDateTime getEndTime() {
        return endTime;
    }

    public TransferEntry setEndTime(LocalDateTime endTime) {
        this.endTime = endTime;
        return this;
    }

    public boolean isAccept() {
        return accept;
    }

    public TransferEntry setAccept(boolean accept) {
        this.accept = accept;
        return this;
    }

}
